// 管理初始化状态
export function mapState() {
  return {
    Task: {
      TagStatuses: [
        { label: "已开启", statuses: [2] },
        { label: "已停止", statuses: [3, 4] },
        { label: "未开启", statuses: [1] }
      ],
      basicColumns: [
        { key: "frwid", title: "编号" },
        { key: "frwmc", title: "任务名称" },
        { key: "frwlx", title: "任务类型" },
        { key: "frwzt", title: "任务状态" },
        { key: "fhsmblx", title: "话术模板" },
        { key: "smsTemplate", title: "挂机短信模板" },
        { key: "waTemplate", title: "挂机wa消息模板" },
        { key: "frwwhsj", title: "外呼时间段" },
        { key: "fjtzjtj", title: "转人工" },
        { key: "frwjlsj", title: "导入号码时间" },
        { key: "frwjlr", title: "创建人" },
        // { key: "owner", title: "归属人" },
        { key: "rwmx" , title: "任务明细"},
        { key: "actions", title: "操作" }
      ],
      effectColumns: [
        { key: "totalCalls", title: "累计外呼数" },
        { key: "totalImports", title: "累计导入数" },
        { key: "todayCalls", title: "当天外呼数" },
        { key: "todayImports", title: "当天导入数" },
        { key: "todayCallProgress", title: "当天外呼进度" },
        { key: "todaySmsSent", title: "当天短信发送" },
        { key: "todayCallThroughRate", title: "当天接通率" },
        { key: "todayIntentionRate", title: "当天意向率" }
      ],
      searchCriteria: {
        frwid: null,
        frwmc: null,
        frwzt: null,
        frwjlr: null,
        frwlx: null,
        fhsmblx: null,
        frwksrq: null,
        frwjsrq: null
      },
      statusMap: {
        1: "未开启",
        2: "进行中",
        3: "暂停",
        4: "已完结",
        5: "拨打时间段外",
        6: "排队中",
        7: "已过期"
      },
      typeMap: {
        1: "预测外呼",
        2: "语音通知",
        3: "AI外呼不转人工",
        4: "AI外呼接通转人工",
        5: "AI外呼智能转人工"
      },
      templateMap: {
        1: "AI话术模版",
        2: "语音通知"
      },
      owners: [],
      tableData: [],
      filteredData: [],
      multipleSelection: [],
      mxselection: [],
      DetailData: [],
      taskid: null,
      editid: null,
      currentid: null,
      currentGsid : null,
      editFormData: {

      },
      addFormData: {
        fstepCallinZT : "0",
        fstepAICalloutZT : "0",
        fstepAIseatZT : "0",
        fstepManualcalloutZT : "0",
        fstepManualSeatZT : "0",
        fstepVoicenotificationZT : "0",
        fstepSmssurlZT : "0",
        fstepSmsZT : "0",
        fstepEmailZT : "0",
        fstepWechatZT : "0",
        fstepQRcodeZT : "0"
      },
      chonghuData:{

      }
    },

    TaskForm: {
      formData: {
        frwlx: 1,
        frwmc: null,
        fhsmbid: null,
        frwbfs: null,
        frwyx: 1,
        frwqdfs: 0,
        frwwhsj: null,
        frwwhweek: [1, 2, 3, 4, 5, 6, 7],
        fwjch: 0,
        fwjchtj: null,
        fjtch: 1,
        fjtchtj: null,
        fgjdx: 1,
        fgjdxtj: null,
        ffpkhwx: 0,
        ffpkhwxtj: null,
        fjtzjlx: 0,
        priorCall: null,
        frwhdjk: null,
        fthjdhdjk: null,
        fgzdxhdjk: null,
        flybfcs: null,
        fbfjgsc: null,
        fwxgz: 1,
        fhmycfs: 1,
        fhsmblx: 1,
        fwhpxfs: 1,
        fyxwh: 1,
        frwksrq: null,
        fdsqdsj: null,
        frwjlr: null
      },
      fssb: ["发送失败"]
    }


  };
}